<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>订单详情</title>
    <link rel="stylesheet" href="/Public/layui/css/layui.css"  media="all">
</head>
<style>
    .layui-input-block input{
        width:250px;
    }

</style>
<body>

    <form class="" action="#">
        <div class="layui-form-item">
            <label class="layui-form-label">订单编号:</label>
            <div class="layui-input-block">
                <input id="out_trade_no" type="text" name="out_trade_no" class="layui-input" value="<?php echo ($list["out_trade_no"]); ?>">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">用户昵称:</label>
            <div class="layui-input-block">
                <input id="nickname" type="text" name="nickname" class="layui-input" value="<?php echo ($list["nickname"]); ?>">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">商品价格:</label>
            <div class="layui-input-block">
                <input id="price" type="text" name="price" class="layui-input" value="<?php echo ($list["price"]); ?>">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">支付价格:</label>
            <div class="layui-input-block">
                <input id="pay_money" type="text" name="pay_money" class="layui-input" value="<?php echo ($list["pay_money"]); ?>">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">状态:</label>
            <div class="layui-input-block">

                <input id="status" type="text" name="status" class="layui-input" value=
                        <?php if($list["type"] == 1): if($list["status"] == 1): ?>待收货<?php endif; ?>
                <?php if($list["status"] == 2): ?>借阅中<?php endif; ?>
                <?php if($list["status"] == 3): ?>已逾期<?php endif; ?>
                <?php if($list["status"] == 4): ?>已归还<?php endif; endif; ?>
                <?php if($list["type"] == 2): if($list["status"] == 1): ?>待付款<?php endif; ?>
                    <?php if($list["status"] == 2): ?>待发货<?php endif; ?>
                    <?php if($list["status"] == 3): ?>待收货<?php endif; ?>
                    <?php if($list["status"] == 4): ?>已完成<?php endif; endif; ?>
                >
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">是否支付:</label>
            <div class="layui-input-block">

                <input id="is_pay" type="text" name="is_pay" class="layui-input" value=<?php if($list["is_pay"] == 1): ?>已支付<?php endif; ?>
                <?php if($list["is_pay"] == 0): ?>待支付<?php endif; ?>>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">创建时间:</label>
            <div class="layui-input-block">
                <input id="screate_time" type="text" name="screate_time" class="layui-input" value="<?php echo ($list["screate_time"]); ?>">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">商品名称:</label>
            <div class="layui-input-block">

                <input id="goodinfo" type="text" name="goodinfo" class="layui-input" value=
                        <?php if($list["type"] == 1): echo ($list["goodinfo"]["book_name"]); endif; ?>
                        <?php if($list["type"] == 2): echo ($list["goodinfo"]["unuse_name"]); endif; ?>
                >
                <!--<input id="book_address" type="text" name="book_address" class="layui-input" value="<?php echo ($list["book_address"]); ?>">-->

            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">快递单号:</label>
            <div class="layui-input-block">
                <input id="kuaidi_sn" type="text" name="kuaidi_sn" class="layui-input" value="<?php echo ($list["kuaidi_sn"]); ?>">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">快递公司:</label>
            <div class="layui-input-block">
                <input id="kuaidi_com" type="text" name="kuaidi_com" class="layui-input" value="<?php echo ($list["kuaidi_com"]); ?>">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">运费:</label>
            <div class="layui-input-block">
                <input id="yun_fei" type="text" name="yun_fei" class="layui-input" value="<?php echo ($list["yun_fei"]); ?>">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">联系方式:</label>
            <div class="layui-input-block">
                <input id="phone" type="text" name="phone" class="layui-input" value="<?php echo ($list["phone"]); ?>">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">地址:</label>
            <div class="layui-input-block">
                <input id="address" type="text" name="address" class="layui-input" value="<?php echo ($list["oaddress"]); ?>">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">留言:</label>
            <div class="layui-input-block">
                <input id="liuyan" type="text" name="liuyan" class="layui-input" value="<?php echo ($list["liuyan"]); ?>">
            </div>
        </div>
        <!--<div class="layui-form-item">-->
            <!--<label class="layui-form-label">备注:</label>-->
            <!--<div class="layui-input-block">-->
                <!--&lt;!&ndash;<script id="remark2" name="remark2" type="text/plain"><?php echo ($list["remark2"]); ?></script>&ndash;&gt;-->
            <!--</div>-->
        <!--</div>-->
        <input id="id" type="hidden" value="<?php echo ($list["id"]); ?>">
    </form>
    <!-- 配置文件 -->
    <script type="text/javascript" src="/Public/ueditor/ueditor.config.js"></script>
    <!-- 编辑器源码文件 -->
    <script type="text/javascript" src="/Public/ueditor/ueditor.all.js"></script>
    <!-- 实例化编辑器 -->
    <script type="text/javascript">
        // var editor = UE.getEditor('container');
    </script>
    <script src="/Public/layui/layui.js" charset="utf-8"></script>
    <script src="/Public/js/jquery-1.11.1.min.js" charset="utf-8"></script>
    <script type="text/javascript">
        $(function(){

        });
    </script>
</body>
</html>